<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_validator = true;
include $this->admin_tpl('header');
?>
<script type="text/javascript">
<!--
$(function(){
	
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$("#path").formValidator({onshow:"请输入目录",onfocus:"目录不能为空"})
		.inputValidator({min:1,max:64,onerror:"编码不能为空"})
		.regexValidator({regexp:"^[A-Za-z0-9\\u4E00-\\u9FA5\\uF900-\\uFA2D_/]+$",onerror:"用户名只能为字母和数字"});
			
	$("#name").formValidator({onshow:"请输入名称",onfocus:"名称不能为空"})
		.inputValidator({min:1,max:64,onerror:"名称不能为空"});		
})
//-->
</script>
<div class="pad_10">
<div class="common-form">
<form name="myform" action="?m=<?php echo ROUTE_M;?>&c=<?php echo ROUTE_C;?>&a=add" method="post" id="myform">
<input type="hidden" name="sid" id="sid" value="<?php echo $id;?>"/>
<table width="100%" class="table_form contentWrap">
<tr>
<td  width="80">目录</td> 
<td><input type="text" name="info[path]" value="" class="input-text" id="path"></input></td>
</tr> 
<tr>
  <td>分组</td> 
  <td>
  <?php foreach($group_list as $g){?>
  <label><input name="groups[]" type="checkbox" id="groups_<?php echo $g['id'] ;?>" value="<?php echo $g['id'];?>"><?php echo $g['name'];?> </label>
  <?php } ?></td>
</tr>
<tr>
  <td>权限</td>
  <td><label><input name="rw[]" type="checkbox" id="rw_1" value="1" checked="checked">
    读</label>  
      <label><input name="rw[]" type="checkbox" id="rw_2" onclick="if(this.checked)$('#rw_1').attr('checked',true);" value="2">
      写 </label></td>
</tr>


 
</table>

    <div class="bk15"></div>
    <input name="dosubmit" type="submit" value="<?php echo L('submit')?>" class="dialog" id="dosubmit">
</form>

</div></div>
</body>
</html>



